function user_set_do(){
	toastr.options = {
			  "closeButton": true,
			  "debug": false,
			  "progressBar": true,
			  "positionClass": "toast-bottom-full-width",
			  "onclick": null,
			  "showDuration": "400",
			  "hideDuration": "1000",
			  "timeOut": "7000",
			  "extendedTimeOut": "1000",
			  "showEasing": "swing",
			  "hideEasing": "linear",
			  "showMethod": "fadeIn",
			  "hideMethod": "fadeOut"
			}
			//输入验证 
			if($("#user_password1").val() == ""){  
                toastr.warning("密码不能为空！");  
                $("#user_password1").focus();  
                return false;  
            }
			if($("#user_password2").val() == ""){  
                toastr.warning("确认密码不能为空！");  
                $("#user_password2").focus();  
                return false;  
            }  
			if($("#user_password1").val() != $("#user_password2").val()){  
                toastr.warning("两次输入密码不相同，请重新核对！");  
                $("#user_password2").focus();  
                return false;  
            }            
            //js验证 `~!@#$^&*()=|{}':;',\\[\\].<>/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？  
            var pattern = new RegExp("[~'!@#$%^&*()-+_=:]");  
            if($("#user_password1").val() != "" && $("#user_password1").val() != null){  
                if(pattern.test($("#user_password1").val())){  
                    toastr.error("密码格式不正确！");  
                    $("#user_password1").focus();  
                    return false;  
                }  
            }
            if($("#user_password2").val() != "" && $("#user_password2").val() != null){  
                if(pattern.test($("#user_password2").val())){  
                    toastr.error("密码格式不正确！");  
                    $("#user_password2").focus();  
                    return false;  
                }  
            }
			var user_name = $('#user_name').val();
			var user_password = $('#user_password1').val();
			//Ajax调用处理
            var user_set_do_return = $.ajax({
               type: "POST",
               url: "index.php?m=user&c=user&a=user_set_do",
               data: "user_password="+user_password,
               async: false
            }).responseText;
			if (user_set_do_return == "1"){
				toastr.success("恭喜您："+user_name+" ，密码修改成功！");
				self.location.reload();
			} else {
				toastr.error("请勿提交非法数据！");
			}
}